package org.chen.gradle.module;

/**
 * @author chensj
 * @date 2020-02-27 20:07
 */
public class TodoItem {
    /**
     * 待办事项名称
     */
    private  String name;
    /**
     * 完成标志
     */
    private boolean hasDone;

    public TodoItem(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isHasDone() {
        return hasDone;
    }

    public void setHasDone(boolean hasDone) {
        this.hasDone = hasDone;
    }

    @Override
    public String toString() {
        return this.name + (hasDone ? "完成" : "未完成");
    }
}
